package com.example.laboratory.common;

import android.widget.Switch;

public class CommonUtils {
    public String getDepartId(String departName){
        String departId = "";
        switch(departName){
            case "计算机学院":
                departId="1070";
                break;
            case "深蓝学院":
                departId="1010";
                break;
            case "化工学院":
                departId="1020";
                break;
            case "环境学院":
                departId="1030";
                break;
            case "生物学院":
                departId="1040";
                break;
            case "人文社科学院":
                departId="1050";
                break;
        }

        return departId;
    }
    public String getDepartName(String departId){
        String departName = "";
        switch(departId){
            case "1070":
                departName="计算机学院";
                break;
            case "1010":
                departName="深蓝学院";
                break;
            case "1020":
                departName="化工学院";
                break;
            case "1030":
                departName="环境学院";
                break;
            case "1040":
                departName="生物学院";
                break;
            case "1050":
                departName="人文社科学院";
                break;

        }
        return departName;
    }

}
